package com.qf.day07.poly02;

public class TuXingUtils {
    public static void printInfo(TuXing tuXing){
        tuXing.zc();
        tuXing.area();
    }

    public static void main(String[] args) {
        Circle circle = new Circle();
//        circle.setName("圆");
        circle.setR(3);
        printInfo(circle);
        Rectangle rectangle = new Rectangle("长方形", 2, 3);
        printInfo(rectangle);
    }
}
